﻿<cfscript>
/** 
* ORM Institute
* 
* @hint "Hibernate persistenter t_institute. 部门信息表 定义学校有关院系所部处等单位的基本数据项" 
* 
*/ 

component 
	displayname="public.service.orm.senate.Institute" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="Institute" 
	table="t_institute"
	{

	property type="string" name="InstituteID" column="institute_id" fieldtype="id" generator="assigned" hint="部门代码";
	
	property type="string" name="InstituteName" column="institute_name" hint="部门名称";
	property type="string" name="InstituteShortName" column="institute_short" hint="部门简称";
	property type="string" name="InstituteEnglish" column="institute_english" hint="部门英文名称";
	property type="string" name="InstitutePinyin" column="institute_pyidx" hint="单位简拼";
	property type="string" name="InstituteAddress" column="institute_address" hint="单位地址";

	property name="Courses" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="Course" hint="课程开设信息";
	property name="Managers" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="InstituteAdmin" hint="院系(部)管理团队";
	property name="StudentStatuses" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="StudentStatus" hint="在校学业的基本数据";
	property name="Subjects" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="Subject" hint="专业设置";
	property name="Teachers" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="Teacher" hint="专任教师";
	property name="TeacherBookStocks" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="institute_id" cfc="BookStockOutTeacher" hint="教师用书出库清单";
	
	property name="Classification" fieldtype="many-to-one" fkcolumn="classification" cfc="InstituteType"  hint="单位类别代码";
	
}

</cfscript>